DateRangePeriodParameters

data class DateRangePeriodParameters(val periodOffset: Int = 0, val periodMultiplier: Int = 1)

Representation of parameters that can be applied to a DateRangeOption, in order to shift the start date and multiply the number of periods in certain selections.

Since

MD2024

Parameters

periodOffset

If the DateRangeOption is based on a period (day, week, month, quarter, year) then shift the starting date by that amount

periodMultiplier

If the DateRangeOption is based on a period, multiply the length of the date range to be this number of those periods. Note: this extends the period by moving the starting date, not the end. Future implementations might move the ending date with negative multipliers.

Constructors

Link copied to clipboard
constructor(periodOffset: Int = 0, periodMultiplier: Int = 1)

Create empty Date range period parameters

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun incrementing(offsetIncrement: Int = 0, multiplierIncrement: Int = 0): DateRangePeriodParameters
Link copied to clipboard
Link copied to clipboard
fun with(newOffset: Int = periodOffset, newMultiplier: Int = periodMultiplier): DateRangePeriodParameters